package com.cogent.common.exception;

public class SystemRuntimeException extends RuntimeException {
	private static final long serialVersionUID = -4357139337691627249L;
	private String errcode;
	private int level;
	private String msg;
	private String logmessage;
	private Throwable cause;
	public final static int HIGH = 1;
	public final static int MIDDLE = 2;
	public final static int LOW = 1;
	
	public SystemRuntimeException(int level, Throwable cause, String errcode, String msg, String logmessage){
		super();
		this.level = level;
		this.cause = cause;
		this.errcode = errcode;
		this.msg = msg;
		this.logmessage = logmessage;
	}
	
	public SystemRuntimeException(int level, Throwable cause, String msg, String logmessage){
		super();
		this.level = level;
		this.cause = cause;
		this.msg = msg;
		this.logmessage = logmessage;
	}
	
	public SystemRuntimeException(int level, String msg){
		super();
		this.msg = msg;
		this.logmessage = msg;
	}
	
	public SystemRuntimeException(int level, Throwable cause, String errcode){
		super();
		this.level = level;
		this.cause = cause;
		this.errcode = errcode;
	}
	
	public String getErrcode() {
		return this.errcode;
	}
}
